//
//  OtherDetailOpenTimeCell.swift
//  ImGuider X
//
//  Created by 陆涛 on 2018/9/29.
//  Copyright © 2018 imguider. All rights reserved.
//

import UIKit

class OtherDetailOpenTimeCell: UITableViewCell {
    
    
    @IBOutlet weak var openTimeLabel: UILabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        
        self.backgroundColor = kThemeBgColor
    }

    var openTime:String? {
        
        didSet {
            
            if let opentime = openTime {
                
                let att = NSMutableAttributedString(string: opentime)
                att.yy_font = kFont12
                att.yy_color = UIColor.hexStringToColor(hexString: "#222222")
                att.yy_lineSpacing = 8
                
                openTimeLabel.attributedText = att
            } else {
                
                openTimeLabel.text = nil
            }
        }
    }
}
